package com.dog.model;

import java.util.*;

/**
 * User: Kuttubek Aidaraliev
 * Date: 29.04.2010
 * Time: 13:29:36
 */
public class ContactPerson extends BaseEntity {

    private String number;
    private String fullName;
    private Sex sex;
    private Date dateBirth;
    private String workPhone;
    private String mobilePhone;
    private String email;
    private String additionalEmail;
    private Customer customer;
    private boolean main;
    private String position;
    private List<Role> roles = new ArrayList<Role>();
    private Date dateLastContact;
    

    public ContactPerson(){
        roles = new ArrayList<Role>();
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public Sex getSex() {
        return sex;
    }

    public void setSex(Sex sex) {
        this.sex = sex;
    }

    public Date getDateBirth() {
        return dateBirth;
    }

    public void setDateBirth(Date dateBirth) {
        this.dateBirth = dateBirth;
    }

    public String getWorkPhone() {
        return workPhone;
    }

    public void setWorkPhone(String workPhone) {
        this.workPhone = workPhone;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAdditionalEmail() {
        return additionalEmail;
    }

    public void setAdditionalEmail(String additionalEmail) {
        this.additionalEmail = additionalEmail;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public boolean isMain() {
        return main;
    }

    public void setMain(boolean main) {
        this.main = main;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public Date getDateLastContact() {
        return dateLastContact;
    }

    public void setDateLastContact(Date dateLastContact) {
        this.dateLastContact = dateLastContact;
    }

    @Override
    public String toString() {
        return "ContactPerson{" +
                "id='" + super.getId() + '\'' +
                "number='" + number + '\'' +
                ", fullName='" + fullName + '\'' +
                ", sex='" + sex + '\'' +
                ", dateBirth=" + dateBirth +
                ", workPhone='" + workPhone + '\'' +
                ", mobilePhone='" + mobilePhone + '\'' +
                ", email='" + email + '\'' +
                ", additionalEmail='" + additionalEmail + '\'' +
                ", customer=" + customer +
                ", main=" + main +
                ", position='" + position + '\'' +
                ", dateLastContact=" + dateLastContact +
                '}';
    }
}
